<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/7/22
 * Time: 11:28
 */

namespace app\api\controller;


use think\Controller;

class Base extends Controller
{
    protected $beforeActionList = [
        'globalReg',
    ];

    protected function globalReg(){
        $configModel = new ConfigsModel();
        $site_name = $configModel->findByCname('site_name');
        $this->assign('site_name',$site_name);
    }
}